import request from '@/utils/request'

// 查询维保申请列表
export function listWbMaintainApply(query) {
  return request({
    url: '/wb/wbMaintainApply/list',
    method: 'get',
    params: query
  })
}

// 查询维保申请详细
export function getWbMaintainApply(id) {
  return request({
    url: '/wb/wbMaintainApply/' + id,
    method: 'get'
  })
}

// 新增维保申请
export function addWbMaintainApply(data) {
  return request({
    url: '/wb/wbMaintainApply',
    method: 'post',
    data: data
  })
}

// 修改维保申请
export function updateWbMaintainApply(data) {
  return request({
    url: '/wb/wbMaintainApply',
    method: 'put',
    data: data
  })
}

// 删除维保申请
export function delWbMaintainApply(id) {
  return request({
    url: '/wb/wbMaintainApply/' + id,
    method: 'delete'
  })
}
